package com.gdssoft.pdaweb.dao.am;
/*
 *  捷达世软件（深圳）有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
*/
import java.util.List;

import com.gdssoft.core.dao.BaseDao;
import com.gdssoft.pdaweb.model.Excel;
import com.gdssoft.pdaweb.model.am.PdaAmMeterList;
import com.gdssoft.pdaweb.model.water.PdaWaterList;

/**
 * 
 * @author 
 *
 */
public interface PdaAmMeterListDao extends BaseDao<PdaAmMeterList>{

	/**
	 * 查询
	 * @param pdaAmMeterList
	 * @return
	 */
	public List<PdaAmMeterList> query(PdaAmMeterList pdaAmMeterList,int start,int to);
	
	/**
	 * 查询记录数
	 * @author F3229233 2013-1-15 下午3:33:14 
	 * @param pl
	 * @return
	 */
	public int queryCount(PdaAmMeterList pl);
	
	/**
	 * 导入excel表到DB
	 */
	public int importExcel(List<Excel> excelList);
/**
 * 检查amId是否存在
 * @param amId
 * @return
 */
	public boolean checkAmidExist(String amId);
	/**
	 * 检查记录是否存在
	 * @param amId
	 * @param importMonth
	 * @return
	 */
	public boolean recodExist(String amId, String importMonth);
	/**
	 * 获得对应的表的读数
	 * @param amId
	 * @param month
	 * @return
	 */
	public Long getDegreeByTime(String amId,String month);

	/**
	 * 更新记录id in ids 的记录状态为status,
	 * @author F3229233 2013-1-17 上午10:25:28 
	 * @param ids = '112,22,45'
	 * @param status
	 * @return
	 */
	public boolean check(String ids, String status);
	/**
	 * 
	 * @param meterID
	 * @param month
	 * @return
	 */
	public PdaAmMeterList getAmListByMeterIDAndMonth(String meterID, String month);

	public boolean saveFixedUsage(PdaAmMeterList pdaAmMeterList);

	
	
}
